/**
 * 
 */
package org.dragonfire.dasm;

/**
 * @author dandroid
 * @date Nov 30, 2006
 */
public class CompileException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4359168310531006187L;
	private int line = 0;
	private String file = null;

	/**
	 * @return the file
	 */
	public String getFile() {
		return file != null ? file : "<Unknown>";
	}

	/**
	 * @param file
	 *            the file to set
	 */
	public void setFile(String file) {
		this.file = file;
	}

	/**
	 * @return the line
	 */
	public int getLine() {
		return line;
	}

	/**
	 * @param line
	 *            the line to set
	 */
	public void setLine(int line) {
		this.line = line;
	}

	public CompileException(String message, Object... params) {
		super(DASM.LANG.getString(message, params));
	}
	/*
	 * public String getMessage() { return file + ":" + line + ": " +
	 * super.getMessage(); }
	 */
}
